package com.atguigu.imperial.court.servlet.module;

import com.atguigu.imperial.court.servlet.base.ViewBaseServlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class PortalServlet extends ViewBaseServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException{
        doPost(req, resp);
    }
    @Override
    protected void doPost(HttpServletRequest req,HttpServletResponse resp) throws  ServletException,IOException{
        //声明要访问的逻辑试图
        String templateName="index";
        //调用父类的方法根据逻辑视图渲染视图
        processTemplate(templateName,req,resp);
    }
}
